import { computed as e } from "vue";
import { c as s } from "../component-87e22bdd.mjs";
import { p as a } from "../pxCheck-fb1b9a66.mjs";
import { g as c, G as u } from "../common-27a18dce.mjs";
import { u as d } from "../useProvide-fb0387bb.mjs";
import "../props-c0e5b20d.mjs";
/*!
* Vin UI 移动端 Vue3 组件库 v0.2.9 Fri Jun 02 2023 21:01:02 GMT+0800 (中国标准时间)
* (c) 2023 @vingogo.
* Released under the MIT License.
*/
const { create: f, componentName: r, useVinContext: g } = s("grid"), G = f({
  props: c,
  setup(t) {
    const { getMainClass: o, getMainStyle: n } = g(t);
    d(u, `${r}-item`)({ props: t });
    const i = e(() => o({
      [`${r}--border`]: t.border && !t.gutter
    })), m = e(() => n({
      "padding-left": t.gutter && a(t.gutter)
    }));
    return {
      mainClass: i,
      mainStyle: m
    };
  }
});
export {
  G as default
};
